
#include "fftwengine.h"

void FFTWEngine::setSize( unsigned int sz )
{
  assert(sz>=4);

  if(size==sz)
    return;

  fftw_destroy_plan(plan);
  size = sz;
  plan = fftw_plan_r2r_1d(size, 0, 0, FFTW_R2HC, FFTW_ESTIMATE);
};
